package com.ken.elmboot.bean;

import java.util.List;

/**
 * @author ken
 */
public class Admin {

    private Integer adminId;
    private String adminName;
    private String password;
    private String salt;
    private String headImage;

    private List<Role> roles;

    public Admin() {
    }

    public Admin(Integer adminId, String adminName, String password) {
        this.adminId = adminId;
        this.adminName = adminName;
        this.password = password;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public List<com.ken.elmboot.bean.Role> getRoles() {
        return roles;
    }

    public void setRoles(List<com.ken.elmboot.bean.Role> roles) {
        this.roles = roles;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "adminId=" + adminId +
                ", adminName='" + adminName + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", headImage='" + headImage + '\'' +
                ", roles=" + roles +
                '}';
    }
}